import React, {Component} from 'react'
import {
    BrowserRouter as Router,
    Route,
    Switch
} from 'react-router-dom';
import {renderRoutes} from 'react-router-config'

import App from '$components/app/app'
// import Error404 from '$components/error404/error404'
import Blank from '$components/blank/Blank'

const routers = [
    {
        component: App,
        routes: [
            {
                path: '/',
                exact: true,
                component: Blank,
                routes: [
                    
                ]
            }
        ]
    }
    // ,
    // {
    //     path: '*',
    //     component: Error404
    // }
]

class Routers extends Component {
    constructor(props) {
        super(props);
    }

    render() {
        return (
            <Router>
                {renderRoutes(routers)}
            </Router>
        )
    }
}

export default Routers